/***********************************************************************
 * Module:  Vip.java
 * Author:  Lionel
 * Purpose: Defines the Class Vip
 ***********************************************************************/
package hebergement;

import projection.Projection;
import java.util.*;

/** @pdOid 2a34d65a-c8fe-4c2d-a2ab-35ac6c10e196 */
public class Vip {

    /** @pdOid 18b9c972-9ace-41f4-828c-0e15f7fdbf43 */
    private int idVip;
    /** @pdOid e118720d-7198-4f9d-a996-c78e82d84c02 */
    private String nom;
    /** @pdOid fd2ac4b7-a0b3-4c31-b8ac-cdbebd67cd1c */
    private String prenom;
    /** @pdOid 919c300b-9dcb-4bd5-ab86-79c167116211 */
    private Date dateDeNaissance;
    /** @pdOid 9adeb850-7d43-4f80-b4bd-fca22fd36395 */
    private String telephone;
    /** @pdOid 7d474fc3-103b-40c4-8f96-9942fb4b7927 */
    private Boolean estJury;
    /** @pdRoleInfo migr=no name=LieuHebergement assc=logement mult=0..* */
    public LieuHebergement[] Reserve;

    public Projection[] getAssiste() {
        return Assiste;
    }

    public LieuHebergement[] getReserve() {
        return Reserve;
    }
    /** @pdRoleInfo migr=no name=Projection assc=spectateur mult=1..* */
    public Projection[] Assiste;

    public Vip(int id, String name, String surname, Date dateNaissance, String tel, boolean jury, LieuHebergement[] lh, Projection[] assiste) {
        this.idVip = id;
        this.nom = name;
        this.prenom = surname;
        this.dateDeNaissance = dateNaissance;
        this.telephone = tel;
        this.estJury = jury;
        this.Reserve = lh;
        this.Assiste = assiste;
    }

    /** @pdOid 29c11793-1f73-47a8-9607-7400bce62fc5 */
    public int getIdVip() {
        return idVip;
    }

    /** @pdOid 406153ee-87c4-420a-8c15-8df1431a723d */
    public String getNom() {
        return nom;
    }

    /** @pdOid fcaaf720-6a74-487b-b8c0-b4d0594089ff */
    public String getPrenom() {
        return prenom;
    }

    /** @pdOid c94aeeea-990d-4c30-a9e8-03d794b56fa6 */
    public Date getDateDeNaissance() {
        return dateDeNaissance;
    }

    /** @pdOid 653e4cb1-74df-41eb-8783-bf6891d728c3 */
    public String getTelephone() {
        return telephone;
    }

    /** @pdOid e946ede1-c288-423c-9e97-fbeb1ad63623 */
    public Boolean getEstJury() {
        return estJury;
    }

    public Object getGetter(int col) {
        if (col == 0) {
            return this.getIdVip();
        }
        if (col == 1) {
            return this.getNom();
        }
        if (col == 2) {
            return this.getPrenom();
        }
        if (col == 3) {
            return this.getDateDeNaissance();
        }
        if (col == 4) {
            return this.getTelephone();
        }
        if (col == 6) {
            return this.getEstJury();
        }
        if (col == 7) {
            return this.getReserve();
        }
        if (col == 8) {
            return this.getAssiste();
        }

        return null;
    }

    public void setAssiste(Projection[] Assiste) {
        this.Assiste = Assiste;
    }

    public void setReserve(LieuHebergement[] Reserve) {
        this.Reserve = Reserve;
    }

    public void setDateDeNaissance(Date dateDeNaissance) {
        this.dateDeNaissance = dateDeNaissance;
    }

    public void setEstJury(Boolean estJury) {
        this.estJury = estJury;
    }

    public void setIdVip(int idVip) {
        this.idVip = idVip;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    public void setPrenom(String prenom) {
        this.prenom = prenom;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public void setSetter(Object valu, int col) {
        if (valu instanceof Vip) {
            Vip value = (Vip) valu;
            if (col == 0) {
                this.setIdVip(value.getIdVip());
            }
            if (col == 1) {
                this.setNom(value.getNom());
            }
            if (col == 2) {
                this.setPrenom(value.getPrenom());
            }
            if (col == 3) {
                this.setDateDeNaissance(value.getDateDeNaissance());
            }
            if (col == 4) {
                this.setTelephone(value.getTelephone());
            }
            if (col == 6) {
                this.setEstJury(value.getEstJury());
            }
            if (col == 7) {
                this.setReserve(value.getReserve());
            }
            if (col == 6) {
                this.setAssiste(value.getAssiste());
            }
        }
    }
}
